//
// Created by Zhangwj on 2023/9/25.
//

#ifndef COMPILE_TASK2_MAINFUNCDEFNODE_H
#define COMPILE_TASK2_MAINFUNCDEFNODE_H


#include "SyntaxTreeNode.h"
#include "../Parser.h"

class MainFuncDefNode : SyntaxTreeNode {
public:
    // MainFuncDef → 'int' 'main' '(' ')' Block
    std::unique_ptr<BlockNode> Block;

    static std::unique_ptr<MainFuncDefNode> MainFuncDefParser(Parser &parser);
};


#endif //COMPILE_TASK2_MAINFUNCDEFNODE_H
